package com.icoolkj.mall.order.feign;

import com.icoolkj.mall.common.Result;
import com.icoolkj.mall.order.feign.dto.ProductResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author icoolkj
 * @version 1.0
 * @description
 * @createDate 2025/01/17 18:31
 */
@FeignClient(name = "icoolkj-mall-product", path = "/api/product")
public interface ProductServiceFeignClient {

    @GetMapping("/get-price-product")
    Result<ProductResponse> getPriceProduct(@RequestParam("productId") Long productId);

}
